package com.shiyi.design.proxy;

import java.util.Random;
import java.util.concurrent.TimeUnit;

/**
 * @author wangzhanshuai
 * @date 2021/2/5 8:14 下午
 * @since 1.0
 */
public class Car implements Movable{
    @Override
    public void move() {
        try {
            TimeUnit.SECONDS.sleep(new Random().nextInt(10));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("cat move on road....");
    }
}
